#
# card = createIdcard()
# # 对象层
# com = Commonshare()
# # 访问官网
# com.open_url('https://test.zhixinren.work/back/#/auth/login')
# sleep(4)
# # 点击密码登录
# com.click("xpath", "/html/body/div/div/div[1]/div/div[2]/div/div[1]/div/div/div/div/div[1]/div[2]")
# sleep(2)
# # 定位账号框进行账号输入
# com.input_data("xpath", "/html/body/div/div/div[1]/div/div[2]/div/div[3]/div[2]/div[2]/div/div[1]/input",
#                16610002000)
# sleep(2)
# # 定位密码框进行密码输入
# com.input_data("xpath", "/html/body/div/div/div[1]/div/div[2]/div/div[3]/div[2]/div[2]/div/div[2]/span/input",
#                16610002000)
# sleep(2)
# # 点击登录按钮进行登录
# com.click("xpath", "/html/body/div/div/div[1]/div/div[2]/div/div[3]/div[2]/div[2]/div/button")
# sleep(1)
# # 获取错误弹框内容
# try:
#     result = com.get_text("xpath", "/html/body/div[2]/span/div/div/div/div[2]")
# except NoSuchElementException:
#     print("Error: 未弹出错误框")
# sleep(1)
# com.click("xpath", com.yaml("quick", "花名册"))
# sleep(3)
# com.click("xpath", com.yaml("quick", "添加员工"))
# sleep(2)
# com.input_data("xpath", com.yaml("add_ruzhi", "姓名"), "张院龙")
# sleep(1)
# com.input_data("xpath", com.yaml("add_ruzhi", "手机号码"), com.createPhone())
# sleep(1)
# com.input_data("xpath", com.yaml("add_ruzhi", "身份证号"), card)
# sleep(1)
# com.click("xpath", com.yaml("add_ruzhi", "工作性质"))
# sleep(2)
# com.select('.ant-select-dropdown-menu-item', 1)
# sleep(1)
# com.click("xpath", com.yaml("add_ruzhi", "入职日期"))
# sleep(1)
# com.click("xpath", com.yaml("add_ruzhi", "入职今天"))
# sleep(1)
# com.select('.ant-space-item', 1)

# add_ruzhi()


print("完毕了")
